package org.ru.mse10.cvis.constants;

/**
 * The Class UserNamedQueries.
 */
public final class UserNamedQueries {

	/** The Constant QUERY_CHECK_LOGIN_KEY. */
	public static final String QUERY_CHECK_LOGIN_KEY = "UserNamedQueries#QUERY_CHECK_LOGIN_KEY";

	/** The Constant QUERY_CHECK_LOGIN. */
	public static final String QUERY_CHECK_LOGIN = "select id from User where email = :email and password = :pass";

	/** The Constant QUERY_CHECK_EMAIL_KEY. */
	public static final String QUERY_CHECK_EMAIL_KEY = "UserNamedQueries#QUERY_CHECK_EMAIL_KEY";

	/** The Constant QUERY_CHECK_EMAIL. */
	public static final String QUERY_CHECK_EMAIL = "select id from User where email = :email";

	/** The Constant QUERY_HASH_BY_EMAIL_KEY. */
	public static final String QUERY_HASH_BY_EMAIL_KEY = "UserNamedQueries#QUERY_HASH_BY_EMAIL_KEY";

	/** The Constant QUERY_HASH_BY_EMAIL. */
	public static final String QUERY_HASH_BY_EMAIL = "select password from User where email = :email";

	/** The Constant QUERY_USER_BY_EMAIL_KEY. */
	public static final String QUERY_USER_BY_EMAIL_KEY = "UserNamedQueries#QUERY_USER_BY_EMAIL_KEY";

	/** The Constant QUERY_USER_BY_EMAIL. */
	public static final String QUERY_USER_BY_EMAIL = "from User where email = :email";

	/**
	 * Instantiates a new user named queries.
	 */
	private UserNamedQueries() {
	}
}
